package com.server.utils;

import java.util.UUID;

public class UUIDUtil {

	public static String getUuid() {
		UUID uuid = UUID.randomUUID(); // 生成uuid
		String id = uuid.toString(); // 将uuid转变为字符串
		id = id.toUpperCase(); // 将小写字母转为大写
		id = id.replaceAll("-", ""); // 去掉-
		return id; // 返回生成的id
	}
	
	public static void main(String[] args) {
		System.out.println(UUIDUtil.getUuid());
	}

}
